package de.fhluebeck.oop.gps.service.impl;

import java.util.Properties;

import javax.xml.ws.Endpoint;

import de.fhluebeck.oop.gps.common.util.PropertiesHelper;
import de.fhluebeck.oop.gps.service.IWSExportService;
import de.fhluebeck.oop.gps.ws.WSPoiService;

/**
 * 
 * Implementation des Interfaces für den Webservice Export-Service.
 * @author Ogün Bilge, Leif Hitzschke
 * @version 1.00, 13.11.2009
 * 
 */
public class WSExportServiceImpl implements IWSExportService{

	private final static String endpointAddressPoiService = "PoiService";

	public void export() {
		Properties props = PropertiesHelper.loadConfigProperties();
		String endpointBase = props.getProperty("ws.endpoint.base");
		Endpoint.publish(endpointBase + endpointAddressPoiService,
				new WSPoiService());

	}

}
